<!DOCTYPE html>
<html>
    <head lang="en">
        <meta charset="UTF-8">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=10">
        <meta http-equiv="Expires" content="0">
        <meta http-equiv="Pragma" content="no-cache">
        <meta http-equiv="Cache-control" content="no-cache">
        <meta http-equiv="Cache" content="no-cache">
        <title>核算列表</title>
        <link rel="stylesheet" href="/Public/mui/computer/css/bootstrap.css"/>
        <link rel="stylesheet" href="/Public/mui/computer/css/index.css"/>
        <link rel="stylesheet"  href="/Public/mui/static/bower_components/sweetalert/dist/sweetalert.css">
        
       
    </head>
    <body>
        <include file="Lay:heder" />
        <div id="section" style="padding-top:20px" orderid="{{$orderid}}">
            <table class="table table-hover all_table table-striped">
                <thead class="all_thead">
                    <tr>
                        <th>流程</th>
                        <th>操作人</th>
                        <th>状态</th>
                        <th>审核时间</th>
                        <th>备注</th>
                    </tr>
                </thead>
                <tbody class="tbodyQ table_hover">
                   
                </tbody>
            </table>
        </div>
        <script src="/Public/mui/computer/js/jquery-1.11.3.js"></script>
        <script>
            // mui('.mui-scroll-wrapper').scroll({
            //     deceleration: 0.0005 //flick 减速系数，系数越大，滚动速度越慢，滚动距离越小，默认值0.0006
            // });
            $(function(){
                var orderid = $('#section').attr('orderid');
                $.ajax({
                    type: 'POST',
                    url: '/admin/Order/getOrderProgress',
                    dataType: 'JSON',
                    data: {orderid: orderid},
                    success: function(data){
                        if (data) {
                            var str = '';
                            for (var i = 0; i < data.length; i ++) {
                                var result = data[i];
                                var style = '';
                                if (result[result.length - 1]) {
                                    style = 'font-weight:bold;';
                                } else {
                                    style = 'color:#C0C0C0';
                                }
                                str += '<tr style='+style+'>';
                                for (var j = 0; j < result.length - 1; j ++) {
                                    str += '<td>'+result[j]+'</td>';
                                }
                                str += '</tr>';
                            }
                            $('.tbodyQ tr').remove();
                            $('.tbodyQ').append(str);
                        }
                    }
                });
               
            });
        </script>
    </body>
</html>